<?php
namespace app\controller;

use app\BaseController;
use think\Request;

class Login extends BaseController
{
    /**
     * [index 登录]
     * @param  Request $request [description]
     * @return [type]           [description]
     */
    public function index(Request $request)
    {
        return view('index');
    }

    /**
     * [logout 退出账号]
     * @return [type] [description]
     */
    public function logout(Request $request)
    {
        session('zbdInfo', null);

        return redirect($_SERVER['HTTP_REFERER']);
    }
}
